<?php

namespace App\Admin\Forms\Settings;

use Illuminate\Http\Request;

class Other extends BaseTabForm
{
	/**
	 * The form title.
	 *
	 * @var string
	 */
	public $title = '其他设置';
	
	/**
	 * Handle the form request.
	 *
	 * @param Request $request
	 *
	 * @return \Illuminate\Http\RedirectResponse
	 */
	public function handle(Request $request)
	{
		parent::handle($request);
		admin_success('Processed successfully.');
		
		return back();
	}
	
	/**
	 * Build a form here.
	 */
	public function form()
	{
		$this->image('qr_code', '二维码')->rules('required');
	}
	
	/**
	 * The data of the form.
	 *
	 * @return array $data
	 */
	public function data()
	{
		return [
			'qr_code'       => sys('qr_code'),
		];
	}
}